package com.genius.reservation.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.genius.reservation.common.BaseDao.BaseDao;
import com.genius.reservation.evaluate.entity.EvaluateInformation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.genius.reservation.reservation.entity.ReservationOrderInformation;

/**
 * <p>
 * 评价信息表 Mapper 接口
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
public interface EvaluateInformationMapper extends BaseDao<EvaluateInformation> {
    default LambdaQueryWrapper<EvaluateInformation> getWrapper(){
        return new LambdaQueryWrapper();
    }
    default EvaluateInformation up(EvaluateInformation entity){
        this.update(entity);
        return entity;
    }

    default EvaluateInformation ad(EvaluateInformation entity){
        this.save(entity);
        return entity;
    }
}
